include Make.rule

CODE_DIRS = 
LIB_DIRS = base \
		   net

TEST_DIRS = base/tests \
			net/tests

#CODE_PATH = $(foreach path, ${CODE_DIRS}, ${APP_PATH}/${path})
LIB_PATH = $(foreach path, ${LIB_DIRS}, ${APP_PATH}/${path})
TEST_PATH = $(foreach path, ${TEST_DIRS}, ${APP_PATH}/${path})

.PHONY: all lib

all: lib
#	$(foreach src, ${CODE_PATH}, ${MAKE} -C ${src} && ) true

test: lib
	$(foreach src, ${TEST_PATH}, ${MAKE} -C ${src} && ) true

lib:
	$(foreach src, ${LIB_PATH}, ${MAKE} -C ${src} && ) true

clean:
#	$(foreach src, ${CODE_PATH}, ${MAKE} -C ${src} clean && ) true
	$(foreach src, ${LIB_PATH}, ${MAKE} -C ${src} clean && ) true
	$(foreach src, ${TEST_PATH}, ${MAKE} -C ${src} clean && ) true
